package com.neusoft.neuiotms.dcam.fixed.repository.spareConsume;

import org.springframework.data.jpa.repository.JpaRepository;

import com.neusoft.neuiotms.dcam.fixed.model.spareconsume.SpareConsumeApprove;

public interface SpareConsumeApproveRepository extends JpaRepository<SpareConsumeApprove, Long> {
    SpareConsumeApprove findByWorkNumAndTaskId(String workNum, String taskId);

    SpareConsumeApprove findTopByWorkNumOrderByIdDesc(String workNum);
}
